﻿
@echo off
cls
echo ***************************************************************
echo **             Installing VBox-Service-Wrapper               **
echo ***************************************************************
echo.
echo.
echo Service-Path: %CD%\VBoxService.exe
echo.
set /p ServiceName= Please enter Name for the Windows-Service: 
echo.
echo.
set /p StartupType=  Please enter Startup-Type (auto, demand, delayed-auto, disabled): 
echo.
echo.
REM set /p ServiceUser= Please enter Service-User-Name (.\[user] or [DOMAIN]\[user]): 
REM echo.
REM echo.
REM set /P ServiceUserPW= Please enter Service-User-Password: 
REM cls
echo The Service will now be created with this command:
echo.
echo sc create "%ServiceName%" binPath= "%CD%\VBoxService.exe" start= %StartupType%
echo.
pause
echo.
echo Creating Service...
echo.
sc create "%ServiceName%" binPath= "%CD%\VBoxService.exe" start= %StartupType%
echo.
echo.
echo Opening Windows-Service-Manager...
start services.msc
echo Please change the Startup-User for the created service the the user used to
create the VM within the VirtualBox graphical user interface.
pause